<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<html:form action="/getUser.do" method="post">
		<table>
			<tr>
				<td>Username:</td>
				<td><html:text name="loginForm" property="username" /></td>
				<td><html:submit styleId="searchBtn" value="search" title="search" /></td>
			</tr>
		</table>
		<table border="1">
			<thead>
				<tr>
					<td>Username</td>
					<td>Password</td>
					<td>Bothday</td>
				</tr>
			</thead>
			<tbody>
				<logic:present name="loginForm" property="users">
					<logic:iterate id="users" name="loginForm" property="users">
						<tr>
							<td><bean:write name="users" property="username" /></td>
							<td><bean:write name="users" property="password" /></td>
							<td><bean:write name="users" property="bothday" format="yyyyMMdd" /></td>
						</tr>
					</logic:iterate>
				</logic:present>
			</tbody>
		</table>
	</html:form>
</body>
</html>